package org.hzz.promotions.domain.service;

import io.gitee.pkmer.ddd.shared.service.DomainService;
import org.hzz.promotions.domain.entity.CouponScopeEntity;

import java.util.List;
import java.util.Optional;

/**
 * @author <a href="mailto:1193094618@qq.com">pkmer</a>
 * <br>
 * <a href = "https://gitee.com/developeros/videos-online">Code Repository</a>
 * At 2024/8/30
 * 优惠券范围服务
 */
public interface CouponScopeDomainService extends DomainService {

    /**
     * 插入优惠券范围
     * @param entity 范围实体
     */
    void insertCouponScope(CouponScopeEntity entity);

    /**
     * 批量插入优惠券范围
     * @param entities 范围实体集合
     */
    void batchInsertCouponScope(List<CouponScopeEntity> entities);

    /**
     * 删除优惠券范围
     * @param couponId 优惠券Id
     */
    void deleteCouponScope(Long couponId);

    /**
     * 根据优惠券id查询优惠券范围
     * @param couponId 优惠券id
     */
    List<CouponScopeEntity> getCouponScopeByCouponId(Long couponId);

}
